(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <string.h>
int memcmp()
SYNOPSIS
const void * s1
const void * s2
size_t n

FUNCTION
Calculate s1 - s2 for the n bytes after s1 and s2 and stop when the difference is not 0.

INPUTS
s1, s2 - Begin of the memory areas to compare
n
The number of bytes to compare
RESULT
The difference of the memory areas. The difference is 0, if both are equal, < 0 if s1 < s2 and > 0 if s1 > s2. Note that it may be greater then 1 or less than -1.

NOTES
This function is not part of a library and may thus be called any time.

EXAMPLE
BUGS
SEE ALSO
strcmp(), strncmp(), strcasecmp() strncasecmp()
INTERNALS
HISTORY
13.07.1997 iaint
A few uninitialized variable changes
12.12.1996 aros
Added missing const flag.
11.12.1996 aros
New functions